@section('title')
   {{ $article->title }}
@show
@section('content')      
        <div class="navbar theme-white">
          <div class="navbar-inner">
			<div class="left"><a href="{{ route('info.index') }}" class="link icon-only"> <i class="icon icon-back"></i></a></div>
            <div class="center sliding">资讯</div>
			<div class="right">@if($is_weixin)<a href="#" class="btn-share link icon-only"> <i class="icon icon-share"></i></a>@endif</div>
          </div>
        </div>
          
        <div class="pages navbar-through toolbar-through">
          <div data-page="info-detail-{{ $article->id }}" class="page pb60">
            <div class="page-content">
				<div class="sample-content-wrapper">
					<div class="sample-content lawyers-top" style="display:none;">
						<div class="sample-item">
							<div class="">
								<h4>推荐律师</h4>
							</div>		
							<div class="list-block">
								<ul class="lawyer-recommend">
								</ul>
								<p class="center"><a href="/search" target="external">更多律师</a></p>
							</div>
						</div>
					</div>
					<div class="sample-content">
						<div class="sample-item">
							<div class="detail-title">{{ $article->title }}</div>
							<div class="detail-content" style="padding-top:10px;">{{ $content }}</div>
						</div>
					</div>
				</div>							
            </div>
          </div>
        </div>
		@include('widgets.toolbar', array('active'=>'info'))
   @stop

@section('bodyEnd')
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>
		law_cat = '{{ $article->law_cat }}';
		$$.ajax({
			type: "get",
			dataType: "html",
			url: "/info/lawyers/"+law_cat,
			success: function(response){
				if(response)
				{
					$$('.lawyer-recommend').html(response); 	
					$$('.lawyers-top').show();
					$$('.lawyer-recommend li div').each(function(){
						$$(this).css('height', $$('.lawyer-recommend li').width()+'px');
					})
				}
			}
		});
    function share(cfg) {
        wx.config(cfg);
        wx.ready(function(){
            var shareData = {
                title: "{{ $article->title }}",
                desc: "{{ trim($article->info) }}",
                imgUrl: "@if(file_exists($article->img)){{ Config::get('app.img_url').$article->img }}@else{{ asset('img/logo.jpg') }}@endif",
                link: location.href,
                success: function () {
                    
                }
            };
           wx.onMenuShareAppMessage(shareData);
           wx.onMenuShareTimeline(shareData);
        });
    }
</script>
<script src="{{ route('common.wxconfig',['callback'=>'share','debug'=>0 ]) }}"></script>
@show